package com.gametheoryserver.gui.nim.state;

import com.gametheoryserver.gui.nim.action.HideStrategyAction;
import com.gametheoryserver.gui.nim.PlayNim;
import com.vaadin.ui.Label;

/**
 * @author Tomas Barak
 * 
 */
public class ShowStrategyState implements INimState {

	@Override
	public void refreshGame(PlayNim playNim) {
		for (Label l : playNim.getNim().getStrategies()) {
			l.setVisible(true);
		}
		playNim.getNim().getNimSumLabel().setVisible(true);
		playNim.getHelpLabel().setVisible(true);
		playNim.getShowStrategyBtn().setCaption("Schovej strategii");
		playNim.getShowStrategyBtn().addListener(new HideStrategyAction(playNim));
	}

}
